// const TerserPlugin = require('terser-webpack-plugin')
// const BundleAnalyzerPlugin = require("webpack-bundle-analyzer").BundleAnalyzerPlugin

module.exports = {
  configureWebpack: {
    externals: {
      "AMap": "AMap"
    },
  },
  productionSourceMap: false,
  chainWebpack: config => {
    config.module
      .rule('fonts')
      .use('url-loader')
      .loader('url-loader')
      .tap(options => Object.assign(options, { limit: 80000 }))
  },
  devServer: {
    port: 8080, // 端口号
    // host: "localhost",
    host: '0.0.0.0'
  }
};
